<?php /* Smarty version 2.6.16, created on 2011-10-28 11:21:55
         compiled from student_game_update.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'student_game_update.tpl', 45, false),)), $this); ?>
 <?php echo '
 <script language="javascript" src="js/contact_us.js"></script> 
<script language="javascript" type="text/javascript">
var $ = jQuery.noConflict();

function CheckFields()
{ 
  if($("#game_id").isEmpty())
    	 $("#game_id").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#comment").isEmpty())
    	 $("#comment").attr(\'style\',\'border:1px solid #FF0000\');
  if(document.getElementById(\'game_id\').value==\'\' ) 
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please select a game");
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);
    return false;
   }
  if(document.getElementById(\'comment\').valuue == \'\')
   {
    $(\'#FormErrorMsg\').show();
	$(\'#FormErrorMsg\').html("Please enter comment");
	
	return false;
   }	 
  return true;
 }  
</script>
'; ?>


 <div class="right-panel">
      <div class="findstudent-title"><a href="student_game.php"><h1 title="Profile"><span>My Games</span></h1></a>
        <div class="breadcrumb"><?php echo $this->_tpl_vars['SubmitButton']; ?>
 Game</div>
        <div class="clear"></div>
	  </div>
      
      <div class="register">
	   <div id='FormErrorMsg' style="color:red; text-align:center; padding-bottom:10px;"><?php if ($this->_tpl_vars['ermsg'] != ''): ?> <?php echo $this->_tpl_vars['ermsg'];  endif; ?> </div>
      <form name="game" id="game" action="" method="post">
	  <input type="hidden" name="user_game_id" value="<?php echo $this->_tpl_vars['user_game_id']; ?>
" />
         <fieldset>
            <label>Select Game :</label>
            <select name="game_id" id="game_id" class="con-req">
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['GameArr'],'selected' => $this->_tpl_vars['Formval']['game_id']), $this);?>

			</select>
			<?php if ($this->_tpl_vars['user_game_id'] != ''): ?>
			<label>Active :</label>
			<input name="is_active" id="is_active" type="checkbox" value="Y" <?php if ($this->_tpl_vars['Formval']['is_active'] == 'Y'): ?>checked<?php endif; ?>>
			<?php endif; ?>
			<p class="clear"></p>
			<label>Experience :</label>
			<textarea  name="experience" id="experience"><?php echo $this->_tpl_vars['Formval']['experience']; ?>
</textarea>
            <!--input name="experience" id="experience" type="text" value="<?php echo $this->_tpl_vars['Formval']['experience']; ?>
" /-->
           
			<!--p class="clear"></p>
            <label>Comment :</label>
            <textarea  name="comment" id="comment" class="con-req"><?php echo $this->_tpl_vars['Formval']['comment']; ?>
</textarea-->
            <p class="clear"></p>
           
            <label>&nbsp;</label>
            <input name="submit" class="submit" value="<?php echo $this->_tpl_vars['SubmitButton']; ?>
" type="submit" onclick='return CheckFields()' />
            <input name="" class="cancel" value="Cancel" type="button" onclick="window.location.href='student_game.php'" />
         </fieldset>
      </form>
      </div>
      
      
      
      <div class="clear"></div>
   </div>